import Layout from '@/page/index/'

export default [{
  path: '/welrel',
  component: Layout,
  redirect: '/welrel/index',
  children: [{
    path: 'index',
    name: '首页',
    meta: {
      i18n: 'dashboard'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/index')
  }, {
    path: 'dashboard',
    name: '控制台',
    meta: {
      i18n: 'dashboard',
      menu: false,
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
  },

    {
      path: '/creative',
      name: '素材库',
      component: () =>
        import( /* webpackChunkName: "page" */ '@/views/offer/creative'),
      meta: {
        keepAlive: false,
        isTab: true,
        isAuth: true
      }
    },

    {
      path: '/verification/AccountexpenseVerification',
      name: '账户花费校验',
      component: () =>
        import( /* webpackChunkName: "page" */ '@/views/verification/AccountexpenseVerification'),
      meta: {
        keepAlive: true,
        isTab: true,
        isAuth: true
      }
    },
    {
      path: '/verification/AdVerification',
      name: '广告花费校验',
      component: () =>
        import( /* webpackChunkName: "page" */ '@/views/verification/AdVerification'),
      meta: {
        keepAlive: true,
        isTab: true,
        isAuth: true
      }
    },
    {
      path: '/verification/AdOnlineVerification',
      name: '在线广告校验',
      component: () =>
        import( /* webpackChunkName: "page" */ '@/views/verification/AdOnlineVerification'),
      meta: {
        keepAlive: true,
        isTab: true,
        isAuth: true
      }
    },
    {
      path: '/verification/OperationRecord',
      name: '操作记录',
      component: () =>
        import( /* webpackChunkName: "page" */ '@/views/verification/OperationRecord'),
      meta: {
        keepAlive: true,
        isTab: true,
        isAuth: true
      }
    },
    {
      path: '/creativerequest',
      name: '需求沟通',
      component: () =>
        import( /* webpackChunkName: "page" */ '@/views/offer/creativerequest'),
      meta: {
        keepAlive: false,
        isTab: true,
        isAuth: true
      }
    },
    {
      path: '/creativeaudit',
      name: '素材审核',
      component: () =>
        import( /* webpackChunkName: "page" */ '@/views/offer/creativeaudit'),
      meta: {
        keepAlive: false,
        isTab: true,
        isAuth: true
      }
    }]
},
  {
    path: '/test',
    component: Layout,
    redirect: '/test/index',
    children: [{
      path: 'index',
      name: '测试页',
      meta: {
        i18n: 'test'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/test')
    }]
  },{
    path: '/dict-horizontal',
    component: Layout,
    redirect: '/dict-horizontal/index',
    children: [{
      path: 'index',
      name: '字典管理',
      meta: {
        i18n: 'dict'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
    }]
  },
  //修改连接地址 修改跳转背景
  {
    path: '/dict-vertical',
    component: Layout,
    redirect: '/dict-vertical/index',
    children: [{
      path: 'index',
      name: '字典管理',
      meta: {
        i18n: 'dict'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
    }]
  }, {
    path: '/business',
    name: '订单',
    component: Layout,
    redirect: '/business/share',
    children: [{
      path: 'share',
      name: '订单分享',
      meta: {
        i18n: 'share'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/business/share')
    }]

  }, {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
      path: 'index',
      name: '个人信息',
      meta: {
        i18n: 'info'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/system/userinfo')
    }]
  }, {
    path: '/work/process/leave',
    component: Layout,
    redirect: '/work/process/leave/form',
    children: [{
      path: 'form/:processDefinitionId',
      name: '请假流程',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
    }, {
      path: 'handle/:taskId/:processInstanceId/:businessId',
      name: '处理请假流程',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
    }, {
      path: 'detail/:processInstanceId/:businessId',
      name: '请假流程详情',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail')
    }]
  }]
